package com.jzw.controller;

import com.jzw.service.TestUsersTransactionalService;
import com.jzw.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.annotations.ApiIgnore;

@ApiIgnore
@RestController
public class HelloController {

    @Autowired
    UserService userService;
    @Autowired
    TestUsersTransactionalService testUsersTransactionalService;

    @GetMapping("/hello")
    public Object hello() {
        return "hello world~";
    }


    @GetMapping("/test")
    public void testTransitional() {
        testUsersTransactionalService.testTransitional();
    }

}
